
local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)

function onCreatureAppear(cid)			npcHandler:onCreatureAppear(cid)		end
function onCreatureDisappear(cid)		npcHandler:onCreatureDisappear(cid)		end
function onCreatureSay(cid, type, msg)		npcHandler:onCreatureSay(cid, type, msg)	end
function onThink()				npcHandler:onThink()				end

local function setMarkers(cid, message, keywords, parameters, node)
	
	local pos = getTownTemplePosition(getTownIdByName('khal-tar'))
	doAddMapMark(cid, pos, MAP_MARKS["crucifix"], 'Temple')

	local pos = {x=297, y=445, z=7}
	doAddMapMark(cid, pos, MAP_MARKS["flag"], 'ship')

	local pos = {x=311, y=434, z=7}
	doAddMapMark(cid, pos, MAP_MARKS["bag"], 'mall')

	local pos = {x=335, y=373, z=7}
	doAddMapMark(cid, pos, MAP_MARKS["cross"], 'postal cervice')

	local pos = {x=283, y=401, z=7}
	doAddMapMark(cid, pos, MAP_MARKS["lock"], 'depot')


	npcHandler:say('There you go.', cid)
	return true
end

local node1 = keywordHandler:addKeyword({'town'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Do you want to mark the important locations in town on the map for you?'})
	node1:addChildKeyword({'yes'}, setMarkers, {cost = 0, premium = false})
	node1:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, moveup = 1, text = 'Come back if you change your mind'})

keywordHandler:addKeyword({'job'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'I am a Guardsman, no really I loath fighting. I could show you where things are around {town}.'})

npcHandler:addModule(FocusModule:new())